Skip to contentSkip to conversation

CLVMD Simple method to get who holds a lock in a cluster

linux-lvm brem belguebli 2 participants 3 messages Jul 27, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

In a clustered environment, without GFS, we plan to use CLVMD exclusive activation of VG's in order to prevent a VG to be activated on more than 1 node at a time.

I've been looking for how to check who holds a lock for a given VG but I could'nt find no suitable way to do it.

The only way was to activate debug ( mount -t debugfs debug /debug) and cat /debug/dlm/clvmd_locks.

Is there a way to request dlm (via dlm_tool) to get the lock holding node or via any LVM command.

Regards

#1 lore raw
Quoted 13 lines · brem belguebli

Hi,
In a clustered environment, without GFS, we plan to use CLVMD exclusive activation of VG's in order to prevent a VG to be activated on more than 1 node at a time.
I've been looking for how to check who holds a lock for a given VG but I could'nt find no suitable way to do it.
The only way was to activate debug ( mount -t debugfs debug /debug) and cat /debug/dlm/clvmd_locks.
Is there a way to request dlm (via dlm_tool) to get the lock holding node or via any LVM command.
Regards

Depending on the version you have dlm_tool will show you who holds the lock. But all it does is use the same debugfs interface you've already mentioned :-)

Chrissie

#2 lore raw

Hi Chrissie,

RHEL 5.3 shipped cman-2.0.9-1.el5, any updated RPM available for RHEL 5.3 ?

Thanks

Brem

2009/7/27, Christine Caulfield <[email protected]>:

Quoted 29 lines · brem belguebli
Quoted 15 lines

Hi,
In a clustered environment, without GFS, we plan to use CLVMD exclusive activation of VG's in order to prevent a VG to be activated on more than 1 node at a time.
I've been looking for how to check who holds a lock for a given VG but I could'nt find no suitable way to do it.
The only way was to activate debug ( mount -t debugfs debug /debug) and cat /debug/dlm/clvmd_locks.
Is there a way to request dlm (via dlm_tool) to get the lock holding node or via any LVM command.
Regards

Depending on the version you have dlm_tool will show you who holds the lock. But all it does is use the same debugfs interface you've already mentioned :-)

Chrissie

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/